home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / Install App Fat⁄PPC⁄68K / Makefile < prev   
Encoding:
Makefile  |  1996-09-20  |  4.1 KB  |  104 lines  |  [TEXT/MPS ]

  1. #
  2. #    makefile for "InstallFatApp.r", the example for InstaCompOne font compression
  3. #
  4. #
  5. #        to build installer script :
  6. #            1) select "Build" from "Build" menu
  7. #            2) type script name "InstallFatApp" ( note: ".r" is omitted )
  8. #            
  9. #        to build debug version of installer script :
  10. #            1) select "Build" from "Build" menu
  11. #            2) type script name "InstallFatApp.debug" ( note: ".r" is omitted )
  12. #            
  13. #
  14. #
  15.  
  16. # • script names
  17. scriptName                = InstallFatApp
  18. debugScriptName            = {scriptName}.debug
  19. localScriptCheckExtName    = {scriptName}.scx
  20.  
  21. sourceFile                = CheckIfInternalRuleFunc
  22.  
  23. OBJECTS                    = CheckIfInternalRuleFunc.c.o
  24.  
  25. # • directories and tool names
  26. ScriptCheckDir            = :::Tools:Released:ScriptCheck 4.0.3:
  27. InstallerCIncDir        = :::DeveloperInterfaces:CIncludes:
  28. InstallerCSrcDir        = :::DeveloperInterfaces:CSources:
  29. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  30. InstallerDebuggerDir    = :::Tools:Released:Installer Debugger 4.0.3:
  31. InstaCompOneDir            = :::Tools:Released:InstaCompOne 1.1:
  32.  
  33. compressTool            = {InstaCompOneDir}InstaCompOneTool
  34.  
  35. # NOTE: The source file for the compression command should have the
  36. # same file type and creator as the resulting target application, since
  37. # this decompression will be performed via file atom. InstaCompOne looks
  38. # for an entry in the file archive that has matching filename, type and
  39. # creator as the target spec ( 'intf' ) of the file atom ( 'infa' ).
  40. # Filename can be modified using the -f option with InstaCompOneTool,
  41. # but the file type and creator must be correct already in the source file.
  42. PowMacDataForkSrcName    = :Source Files:PowMac Data Fork
  43. PowMacEntryName            = ModApp
  44. PowMacArchiveName        = :Disk 1:PowMacFileArchive
  45.  
  46. PowMacRsrcForkSrcName    = :Source Files:PowMac Rsrc Fork
  47. PowMacRsrcForkTgtName    = :Disk 1:Power Macintosh Part
  48.  
  49. 68KRsrcForkSrcName        = :Source Files:68K Macintosh Part
  50. 68KArchiveName            = :Disk 1:68KRsrcArchive
  51.  
  52. CommonResourcesSrcName    = :Source Files:Common Part
  53. CommonResourcesName        = :Disk 1:Common Part
  54.  
  55. PowMacWarnOn68KSrcName    = :Source Files:PowerMacWarnOn68K Part
  56. PowMacWarnOn68KName        = :Disk 1:PowerMacWarnOn68K Part
  57.  
  58. ScriptCheckExtension    = {InstaCompOneDir}InstaCompOneSCExt.rsrc
  59.  
  60. COptions        = -b -r -sym off
  61. LinkOptions        = -mf -sym off
  62.  
  63. "{debugScriptName}" ƒ "{scriptName}"
  64.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  65.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  66.  
  67. "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r" "{PowMacArchiveName}" "{PowMacRsrcForkTgtName}" "{68KArchiveName}" "{CommonResourcesName}" "{PowMacWarnOn68KName}" "{localScriptCheckExtName}"
  68.     set theTime    "'`date -d -s` 12:00:00 PM'"
  69.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  70.     SetFile -a b -d {theTime} "{scriptName}"
  71.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  72.     SetFile -m {theTime} "{scriptName}"
  73.  
  74.  
  75. "{sourceFile}" ƒ "{OBJECTS}"
  76.     Link {LinkOptions} -t rsrc -c RSED -rt infn=143 -m CheckIfInternalRuleFunc -sg "{sourceFile}" ∂
  77.         "{OBJECTS}" ∂
  78.         -o "{sourceFile}"
  79.         
  80. "{sourceFile}.c.o" ƒ "{sourceFile}.c"
  81.     SC {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}"
  82.  
  83. "{PowMacArchiveName}" ƒ "{PowMacDataForkSrcName}" "{CommonResourcesName}"
  84.     "{compressTool}" "{PowMacDataForkSrcName}" -f "{PowMacEntryName}" -o "{PowMacArchiveName}"
  85.     echo "include ∂"{CommonResourcesName}∂" 'vers';" | Rez -append -o "{PowMacArchiveName}"
  86.  
  87. "{68KArchiveName}" ƒ "{68KRsrcForkSrcName}"
  88.     "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=0 -a 'part'=0 -o "{68KArchiveName}"
  89.     "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=1 -a 'part'=1 -o "{68KArchiveName}"
  90.     "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=2 -a 'part'=2 -o "{68KArchiveName}"
  91.  
  92. "{PowMacRsrcForkTgtName}" ƒ "{PowMacRsrcForkSrcName}"
  93.     duplicate -y -r "{PowMacRsrcForkSrcName}" "{PowMacRsrcForkTgtName}"
  94.  
  95. "{CommonResourcesName}" ƒ "{CommonResourcesSrcName}"
  96.     duplicate -y -r "{CommonResourcesSrcName}" "{CommonResourcesName}"
  97.  
  98. "{PowMacWarnOn68KName}" ƒ "{PowMacWarnOn68KSrcName}"
  99.     duplicate -y -r "{PowMacWarnOn68KSrcName}" "{PowMacWarnOn68KName}"
  100.  
  101. "{localScriptCheckExtName}" ƒ "{ScriptCheckExtension}"
  102.     Duplicate -y "{ScriptCheckExtension}" "{localScriptCheckExtName}"
  103.  
  104.